<?php
    include('checkValidSession.php');
?>

<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="utf-8" />
        <title>Upload</title>
    </head>
    <body>
        <?php
            if(isset($_SESSION['message']))
            {
                echo $_SESSION['message'];
            }
            unset($_SESSION['message']);
        ?>
        <form method="post" action="upload.php" enctype="multipart/form-data">
            <input type="file" name="fileToUpload" /><br>
            <input type="submit" value="Upload" />
        </form>
        <div>
            <a href="files.php">Back to the list of files</a>
        </div>
    </body>
</html>
